/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pradoeditor.comun.ui;

import javax.swing.Icon;
import javax.swing.tree.DefaultMutableTreeNode;

/**
 *
 * @author jaimeg
 */
public class IconNode extends DefaultMutableTreeNode
{
  protected Icon   icon;

  public IconNode()
  {
  }

  public IconNode(Object userObject, boolean allowsChildren, Icon icon)
  {
    super(userObject, allowsChildren);
    this.icon = icon;
  }
  
  public void setIcon(Icon icon)
  {
    this.icon = icon;
  }

  public Icon getIcon()
  {
    return icon;
  }

}

